﻿<!DOCTYPE HTML>
<html>
<head>
<#include "/script.ftl">
<script type="text/javascript" src="../static/eth/js/jElass.js"></script>
<script type="text/javascript" src="../static/eth/js/jElassExec.js"></script>
<script type="text/javascript" src="../static/eth/js/policyList.js"></script>
<title>政策列表</title>
</head>
<body id="body"  style="overflow-x: auto;overflow-y: auto">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>政策管理
		<span class="c-gray en">&gt;</span> 三方协议政策
	</nav>
	<div class="page-container">
		<form id="form" action="list" method="get" autocomplete="off">
			<div class="text-c">
				<input type="text" style="display:none"  name="pageIndex" id="pageIndex" value="${page.curIndex!''}" /> 
				<input type="text" style="display:none"  name="pageSize" id="pageSize" value="${page.pageSize!''}" /> 
				<input type="text" style="display:none" name="rowsCount" id="rowsCount" value="${page.rowsCount!''}" />
				<div class="search_line">
					<div class="search_item">
						<label>协议号</label>
						<input type="text" value="${cond.protocolNo!""}" placeholder="" id="" name="protocolNo" class="input-text">
					</div>
					<div class="search_item">
						<label>客户名称</label>
						<input type="text" onClick="ClientId(clientName,clientId)" value="${cond.clientName!""}" placeholder="" id="" name="clientName" class="input-text">
						<input type="hidden" value="${cond.clientId!""}" placeholder="" id="" name="clientId" class="input-text">
					</div>
					<div class="search_item">
						<label>航空公司</label>
						<input type="text" onClick="AirlineCode(airlineName,airline)" value="${cond.airlineName!""}" placeholder="" id="" name="airlineName" class="input-text">
						<input type="hidden" value="${cond.airline!""}" placeholder="" id="" name="airline" class="input-text">
					</div>
					<div class="search_item">
						<label>状态</label>
						<select name="status" class="input-text">
							<option value="">请选择</option>
							<option value="up" <#if cond.status! ="up">selected="selected"</#if>>已启用</option>
							<option value="down" <#if cond.status! ="up">selected="selected"</#if>>已停用</option>
						</select>
					</div>					
				</div>
				<div class="search_line">
					<div class="search_item">&nbsp</div>
					<div class="search_item">&nbsp</div>
					<div class="search_item">&nbsp</div>		
					<div class="search_item">
						<a onclick="query_submit()" href="javascript:;" class="btn btn-primary radius" >查询</a> 
				        <a href="javascript:;" class="ml-5 btn btn-primary radius" >重置</a>
					</div>
				</div>
			</div>
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l"> 
				    <a onclick="layer_open('新增协议号','editPage')" href="javascript:;" class="btn btn-primary radius">新增政策</a> 
				    <a onclick="policy_putons()" href="javascript:;" class="btn btn-danger radius">启用</a> 
				    <a onclick="policy_pulloffs()" href="javascript:;" class="btn btn-danger radius">挂起</a> 
				    <a onclick="policy_putons_all()" href="javascript:;" class="btn btn-danger radius">全部启用</a>
				    <a onclick="policy_pulloffs_all()" href="javascript:;" class="btn btn-danger radius">全部挂起</a>
				    <a onclick="policy_copy()" href="javascript:;" class="btn btn-primary radius">复制转换</a>
				    <a onclick="policy_dels()" href="javascript:;" class="btn btn-danger radius">删除</a>
				</span>
			</div>
			<div class="mt-20" style="overflow-x:auto;">
				<table class="table table-border table-bordered table-bg table-hover table-sort" style="width:3100px" >
					<thead>
						<tr class="text-c" >
							<th width="50"><input name="choosePolicy" id="choosePolicy" type="checkbox" onClick="choose_policys()" value=""></th>							
							<th width="100"><p>政策编号<p>行程类型</th>
							<th width="150">协议方名称</th>
							<th width="100">航空公司</th>
							<th width="200">协议方地址</th>
							<th width="100">客户名称</th>
							<th width="150">客户商业代码</th>
							<th width="150">客户开票代码</th>
							<th width="150">客户地址</th>
							<th width="150">旅行管理公司名称</th>
							<th width="200">旅行管理公司地址</th>
							<th width="200">协议日期</th>
							<th width="200">预订有效期</th>
							<th width="200">乘机有效期</th>
							<th width="100">任务量</th>						
							<th width="200">出发</th>
							<th width="200">到达</th>
							<th width="100">舱位</th>
							<th width="50">扣率</th>
							<th width="50">状态</th>
							<th width="50"><p>自动<p><p>出票<p></th>
							<th width="150">最后日期</th>			
							<th width="100">政策别名</th>
						</tr>
					</thead>
					<tbody class="text-c">
						<#list page.items! as policy>
							<tr class="text-c" ondblclick="layer_open('编辑政策','editPage?policyId=' + ${policy.policyId})">
								<td><input name="policyIds" type="checkbox" value="${policy.policyId}" onClick="choose_policy()"></td>
								<td class="td-id"><p>${policy.policyId!""}</p><p>${policy.flightTypeName!}</p></td>
								<td>${policy.protocolName!""}</td>
								<td>${policy.airlineName!""}(${policy.airline!""})</td>
								<td>${policy.protocolAddress!""}</td>
								<td>${policy.clientName!""}</td>
								<td>${policy.clientBusinessCode!""}</td>
								<td>${policy.clientTicketingCode!""}</td>
								<td>${policy.clientAddress!""}</td>
								<td>${policy.travelManagerName!""}</td>
								<td>${policy.travelManagerAddress!""}</td>
								<td>${policy.protocolDateStartStr!}至${policy.protocolDateEndStr!}</td>
								<td>${policy.ticketingDateStartStr!}至${policy.ticketingDateEndStr!}</td>
								<td>${policy.outboundTravelDateStartStr!}至${policy.outboundTravelDateEndStr!}</td>
								<td>${policy.minimumTask!""}万/年</td>
								<td class="text-c"><div class="of-hidden" style="width:200px;" title="${policy.departureName!}">${policy.departureName!}</div></td>
								<td class="text-c"><div class="of-hidden" style="width:200px;" title="${policy.arrivalName!}">${policy.arrivalName!}</div></td>
								<td class="text-c"><div class="of-hidden" style="width:100px;" title="${policy.departureCabins!}">${policy.departureCabins!}</div></td>
								<td class="text-c">${policy.commision!}</td>
								<td class="text-c"><span class="label label-success radius">${policy.statusName!}</span></td>
								<td class="text-c">${policy.autoTicketingFlagName!}</td>
								<td class="text-c">${policy.ticketingDateEndStr!}</td>
								<td class="text-c">${policy.name!}</td>
							</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</form>
		<div id="Pagination" class="pagination mt-20"></div>
	</div>
</body>
</html>